/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import request from '@/utils/request';

// 抽奖活动发布列表
export async function searchLottery(params: any) {
  return request('/CustomLottery/searchLottery', {
    method: 'POST',
    data: params,
  });
}

// 抽奖活动操作列表日志
export async function operationLog(params: any) {
  return request('/CustomLottery/operationLog', {
    method: 'POST',
    data: params,
  });
}

// 抽奖活动导出
export async function exportLottery(params: any) {
  return request('/CustomLottery/exportLottery', {
    method: 'POST',
    data: params,
  });
}

// 抽奖活动上下线
export async function onlineLottery(params: any) {
  return request('/CustomLottery/onlineLottery', {
    method: 'POST',
    data: params,
  });
}

// 抽奖活动删除
export async function deleteLottery(params: any) {
  return request('/CustomLottery/deleteLottery', {
    method: 'POST',
    data: params,
  });
}

// 抽奖活动新增/编辑
export async function lotteryEdit(params: any) {
  return request('/CustomLottery/edit', {
    method: 'POST',
    data: params,
  });
}
